<template>
    <div @click="onClick">
        <slot></slot>
    </div>
</template>

<script setup>
import { inject } from 'vue';

const props = defineProps(["config", "field"])
const StateEvent = inject('StateEvent');

const onClick = function () {
    StateEvent.RunAction(props.field, "click");
}
</script>

<style lang="scss" scoped></style>